package VN.EDU.IMIC.DEVELOPER.NGUYENTHUYOANH_Array01;

import java.util.Scanner;

public class Views {
	public static void main(String[] args) {
		Controller obj_Controller=new Controller();
	
		Scanner obj_Scanner =new Scanner(System.in);
		//Nhap mang
		int []a=new int[100];
		int k=0;
		do
		{
			System.out.println("Nhap phan tu thu "+ k);
			a[k]=obj_Scanner.nextInt();
			k++;
		}while(a[k-1]>0);
		
		//Xuat mang
		for(int i=0;i<k-1;i++)
		{
			System.out.println("Gia tri phan tu thu "+i + " la ");
			System.out.println(a[i]);
			
			
		}
		//So phan tu duoi TB
		int vitriketthuc=k-1;
		int dem1=obj_Controller.DiemTrenTrungBinh(a, vitriketthuc);
		System.out.println("so diem duoi TB la " +dem1);


	}
	
}
